package com.hhkj.admin.order.service.extend;

import com.hhkj.admin.order.domain.OrderItem;
import com.hhkj.admin.order.model.dopo.OrderItemDo;
import com.hhkj.admin.order.model.dopo.OrderItemPo;
import com.ruoyi.common.base.biz.service.extend.BaseExtendService;

import java.util.List;

public interface OrderItemExtendService
        extends BaseExtendService<OrderItem, OrderItemDo, OrderItemPo> {

    /**
     * 根据订单id获取订单项目id信息
     *
     * @param orderIdList 订单id列表
     * @return true/false
     */
    List<OrderItemPo> listPoByOrderIdList(List<Long> orderIdList);

    /**
     * 根据id列表取消订单子项退款
     *
     * @param idList id列表
     * @return true/false
     */
    boolean cancelRefundByIdList(List<Long> idList);

    /**
     * 根据退款id获取订单子项列表
     *
     * @param refundId 退款id
     * @return 订单子项列表
     */
    List<OrderItem> listPoByRefundId(Long refundId);
}
